
/**
 * First we will load all of this project's JavaScript dependencies which
 * include Vue and Vue Resource. This gives a great starting point for
 * building robust, powerful web applications using Vue and Laravel.
 */

// require('./bootstrap');

/**
 * Next, we will create a fresh Vue application instance and attach it to
 * the body of the page. From here, you may begin adding components to
 * the application, or feel free to tweak this setup for your needs.
 */

// Vue.component('example', require('./components/Example.vue'));

// const app = new Vue({
//     el: '#app'
// });

window.Pusher = require('pusher-js');

import Echo from "laravel-echo"

window.Echo = new Echo({
    broadcaster: 'pusher',
    key: '8d931364dc5be0f22dee'
    //cluster: 'eu',
    //encrypted: true
});

// window.Echo.channel('chat-room.1')
//     .listen('ChatMessageWasReceived', function (data) {
//         console.log(data.user, data.chatMessage);
//     });